﻿using System;

class Program
{
    static void Main()
    {
        Console.Write("Array size:");
        string strArray1size = Console.ReadLine();
        int arraySize = int.Parse(strArray1size);
        int[] arrayOne = new int[arraySize];
        Console.WriteLine("1st array values:");
        for (int i = 0; i < arrayOne.Length; i++)
        {
            Console.Write("arrayOne[{0}]:", i);
            string toParse = Console.ReadLine();
            arrayOne[i] = int.Parse(toParse);
        }
        foreach (var item in arrayOne)
        {
            Console.Write(item + " ");
        }

        Console.WriteLine();
        int[] arrayTwo = new int[arraySize];
        Console.WriteLine("2nd array values:");
        for (int i = 0; i < arrayTwo.Length; i++)
        {
            Console.Write("arrayTwo[{0}]:",i);
            string toParse = Console.ReadLine();
            arrayTwo[i] = int.Parse(toParse);
        }
        foreach (var item in arrayTwo)
        {
            Console.Write(item + " ");
        }
        Console.WriteLine();
        for (int i = 0; i < arraySize; i++)
        {
            if (arrayOne[i] == arrayTwo[i])
            {
                Console.WriteLine("Elements with index [{0}] are the same.", i);
            }
            else
            {
                Console.WriteLine("Elements with index [{0}] are different.", i);
            }
        }

    }
}
